package com.tecode.myBooks.product.bean;



import java.util.Date;

/**
 * Created by Administrator on 2018/11/28.
 */
public class Product {

    private  Integer id;  // 商品编号
    private String  productName;//名称
    private  Double price;//价格
    private  Integer  numbers;//库存
    private  Double discount;//折扣
    private Code stateCode;//商品状态对象
    private String  author	;//作者
    private String  produceImgUrl	;//商品主页图片地址
    private String  press	;//出版社
    private Date pressDate;//出版时间

    //商品的描述对象
    //private List<>


    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", productName='" + productName + '\'' +
                ", price=" + price +
                ", numbers=" + numbers +
                ", discount=" + discount +
                ", stateCode=" + stateCode +
                ", author='" + author + '\'' +
                ", produceImgUrl='" + produceImgUrl + '\'' +
                ", press='" + press + '\'' +
                ", pressDate=" + pressDate +
                '}';
    }

    public Product() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getNumbers() {
        return numbers;
    }

    public void setNumbers(Integer numbers) {
        this.numbers = numbers;
    }

    public Double getDiscount() {
        return discount;
    }

    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    public Code getStateCode() {
        return stateCode;
    }

    public void setStateCode(Code stateCode) {
        this.stateCode = stateCode;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getProduceImgUrl() {
        return produceImgUrl;
    }

    public void setProduceImgUrl(String produceImgUrl) {
        this.produceImgUrl = produceImgUrl;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public Date getPressDate() {
        return pressDate;
    }

    public void setPressDate(Date pressDate) {
        this.pressDate = pressDate;
    }
}
